<template>
	<div>
		<div>
			<view>健康商场</view>
			<view>
			<view v-for="(item,index) in expersslist" :key="item.goodsId"  >
				序号:{{index}},商品编号:{{item.goodsId}},商品名称:{{item.goodsName}},商品数量:{{item.goodsStock}},商家状态:{{item.goodsState}},角色:{{item.goodsQuantity}},创建日期:{{item.goodsUpdatetime}},创建时间:{{item.createTime}},最后修改时间:{{item.updateTime}},
			</view>
			</view>
		</div>
	</div>
</template>

<script>
	export default{
		data() {
			return {
				title: '健康商场',
				esVo:{
					page:1,
					size:3
				},
				expersslist:{},
				goodsId:''
			}
		},
		onLoad() {
			this.handIntegralSelect()
		},
		methods: {
			id(storeId){
				uni.setStorage({
					key: 'goodsId',
					data: goodsId
				})
				uni.navigateTo({
					url:"../center/index?goodsId="+goodsId
					
				})
			},
			handIntegralSelect(){
				const value = uni.getStorageSync('userId');
				console.log(value)
				this.userId=value
				uni.request({
				    url: `http://localhost:7000/shop/goods/goodslist`, //接口地址。
					data: this.esVo,
				    header: {
				        'custom-header': 'hello' //自定义请求头信息
				    },
					method:'POST',
				    success: (res) => {
				        console.log(res.data.data);
						this.expersslist=res.data.data.goodslist
				    },
				})	
			},
			
		},
	}
</script>

<style >
	
</style>
